const Mock = require('mockjs')

const data = Mock.mock({
  code: '@integer(10000, 9999)'
})

module.exports = [
  {
    url: '/vue-admin-template/verification/code',
    type: 'get',
    response: config => {
      const code = data.code
      return {
        code: 20000,
        data: code
      }
    }
  },
  {
    url: '/vue-admin-template/verification/phone',
    type: 'post',
    response: config => {
      const code = data.code
      return {
        code: 20000,
        data: code
      }
    }
  }
]